
#ifndef _MAIN_H_
#define _MAIN_H_

//#define USE_LCD     // 使用LCD段码屏
//#define USE_DS18B20 // 使用DS18B20
//#define USE_UART    // 使用UART

#define VERSION       37

#ifdef USE_LCD
	#define TEMP_LIMITED  1010
#else
	#define TEMP_LIMITED  999
#endif

#define ABS(x) ((x)>=0?(x):(-(x)))

#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#include "stm8s.h"
#include "stm8s003F3.h"

#include "ht1621.h"
#include "seg.h"
#include "ds18b20.h"
#include "adc.h"
#include "adjust.h"
#include "eeprom.h"
#include "gpio.h"
#include "kalman.h"
#include "key.h"
#include "pid.h"
#include "timer.h"
#include "uart.h"

// delay
extern void delay(unsigned int t);
// Power Up 
extern void PowerUpShow(void);

#endif
